Flapi: Fill Your API with Mock Data

Generate dynamic, customizable mock data effortlessly for frontend development.

                    
import requests

response = requests.get(
    "https://flapi.sprucbot.tech/v1/gen", 
    json={
        "name": "name()",
        "email": "email()",
        "age": "age(min=18)"
    }
)
data = response.json()

Why Choose Flapi?

Fully Customizable

Define your schema, and Flapi generates precise mock data tailored to your needs.

Dynamic Responses

Generate multiple unique responses with a single schema call.

Zero Backend Dependencies

Build and test frontend interfaces without waiting for backend implementation.

Quick Example

Request Schema

                        
{
"name": "name()",
"email": "email(domain=hg.co)",
"employee": {
        "_$amount": 2,
        "name": "name()",
    }
}
                        
                    

Generated Response

                        
{
    "name": "James Franco",
    "email": "[email protected]",
    "employee": [
        {
            "name": "Alice Smith",
        },
        {
            "name": "Bob Johnson",
        }
    ]
}                       
                    

Playground

Request Schema

Response